<!-- 基础列表页 -->
<template>
</template>
<script>
import '/public/hiss.js'

const processApp = window.hissProcess
const processRouter = processApp.config.globalProperties.$router

//
processApp.mount('#app')

const url = window.location.href
const params = {}
const regex = /[?&]([^=#]+)=([^&#]*)/g
let match
while ((match = regex.exec(url))) {
  const key = decodeURIComponent(match[1])
  const value = decodeURIComponent(match[2])
  params[key] = value
}
const categoryId = params.categoryId
const tenantId = params.tenantId
const id = params.id
const routerParams = {
  name: 'Bis2',
  params: {},
  query: {
    category: categoryId,
    tenant: tenantId
  }
}
if (id) {
  routerParams.name = 'Bis1'
  routerParams.params.id = id
}
processRouter.push(routerParams)
</script>
